package com.atguigu.tingshu.dispatch;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.dispatch.impl.SearchDegradeFeignClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Package: com.atguigu.tingshu.dispatch
 *
 * @description
 * @author xiongkunYang
 * @since 2025/7/4 9:12 
 */
@FeignClient(
        value = "service-search",
        contextId = "searchFeignClient",
        fallback = SearchDegradeFeignClient.class,
        path = "/api/search"
)
public interface SearchFeignClient {

    /**
     * 更新所有分类下排行榜-手动调用
     */
    @GetMapping("/albumInfo/updateLatelyAlbumRanking")
    Result<Void> updateLatelyAlbumRanking();
}
